<?php if(!defined('IN_SYS')) exit('Access Denied'); ?>
<!--域名-->
<div class="nav-logo"> <a class="logo" href="/"><img src="/logo/main.png?h=50" alt="{$yuming_website[sitename]}"></a> <a class="topnav" id="topnav"></a> </div>
<!--导航-->
<div class="nav-menu" id="nav-menu">
    <ul>
        <li><a href="/" {if 'index'==$current} class="cur" {/if}>首页</a></li>
        <!-- foreach $sitenav -->
        <li><a href="/{$ename}" {if $ename==$current} class="cur" {/if}>{$title}</a></li>
        <!-- /foreach -->
        <li class="closenav"><a href="javascript:;"><img src="{$templets}/style/images/close.png"></a></li>
    </ul>
</div>
<div class="nav-topnav"> 
    <a href="/{$current}/news"  class="home {if $showtype=='new'}current{/if}"> 最新</a> 
    <a href="/{$current}/hot" class="hot {if $showtype=='hot'}current{/if}"> 热点</a> 
    <a href="/{$current}/photo" class="tuwen {if $showtype=='photo'}current{/if}">图文</a>  
</div>

<div class="nav-searchbox">
	<!--搜索框-->
	<div >
		<form action="/plus/search/" method="post" onsubmit="return search_submit_check();">
			<fieldset class="search">
				<input  id="key" class="box cl" type="text" name="keyword"  {if isset($keyword)} value="{$keyword}" {/if}  placeholder="看我想看"  />
				<button onclik="search_submit_check()" class="btn cl" value="搜索" type="submit" ></button>
			</fieldset>
		</form>
	</div>
</div>
<script type="text/javascript">
$("#topnav").click(function() {
    $("body").css('overflow', 'hidden');
    $("#nav-menu").slideDown();
    $(".nav-logo").addClass("fixed");
});
$(".closenav").click(function() {
	$("body").css('overflow', 'auto');
    $("#nav-menu").slideUp('fast');
    $(".nav-logo").removeClass("fixed");
});
</script>

